﻿<%@ Page Language="C#" MasterPageFile="~/Samples/Sample.Master" AutoEventWireup="true"
    CodeBehind="ModalPopup.aspx.cs" Inherits="JQueryControlToolkit.Sample.Web.Samples.ModalPopup"
    Title="Untitled Page" %>

<asp:Content ID="Content3" ContentPlaceHolderID="body" runat="server">
<div id="popup" title="Dialog title">
This is the default dialog which is useful for displaying information. The
 dialog window can be moved, resized and closed with the 'x' icon.
<asp:TextBox runat="server" ID="dummy" />
<asp:RequiredFieldValidator runat="server" Text="*" 
    ControlToValidate="dummy" ValidationGroup="popup" />
</div>
    <jQuery:ModalPopupExtender runat="server" TargetControlSelector="#popup"
         WaitForPageReady="true">
        <Buttons>
            <jQuery:Button ID="Button1" runat="server" Name="dummy1" 
                ValidationGroup="popup" RequiresValidation="true" 
                OnServerClick="Toto">
                <OnClick>
                    function(){ alert("dummy1 clicked"); }
                </OnClick>
            </jQuery:Button>
            <jQuery:Button ID="Button2" runat="server" Name="dummy2" 
                ValidationGroup="popup" RequiresValidation="true" />
        </Buttons>
    </jQuery:ModalPopupExtender>
</asp:Content>
